<?php

// Namespace

namespace Loop;


/**
 * IArchiveDriver is an interface that defines various commands related to archiving files and directories
 * It must be implemented by a class for each archiving platform (e.g. CZipDriver for ZIP files)
 *
 * @package		Loop
 * @category	Driver
 */

interface IArchiveDriver
{
	/**
	 * Adds a directory or a file to the archive
	 *
	 * @param	string $path The path to the directory or file to be added
	 */
	
	public function addPath($path);
	
	
	/**
	 * Sends the ZIP file to the browser
	 *
	 * @param	string $pathToFile The filename of the ZIP file once received by the browser
	 */
	
	public function sendToBrowser($filename);
}

?>
